#include "test.h"
#include <opencv2\opencv.hpp>
#include <iostream>

using namespace std;
using namespace cv;

//C:\ProgramsOrTools\OpenCV2.4.3\samples\cpp\lena.jpg
int test01(int argc, char** argv)
{
    const std::string defaultImageFileName = "C:\\ProgramsOrTools\\OpenCV2.4.3\\samples\\cpp\\lena.jpg";

    Mat image;
    image = imread(defaultImageFileName, CV_LOAD_IMAGE_COLOR);
    if (!image.data)
    {
        cout << "Cannot open or find the image" << endl;
        return -1;
    }

    namedWindow("Display window", CV_WINDOW_NORMAL);
    imshow("Display window", image);

    waitKey(0);

    return 0;
}
